<%@ page import="minusjudge.Contestant" %>



<div class="fieldcontain ${hasErrors(bean: contestantInstance, field: 'contest', 'error')} required">
	<label for="contest">
		<g:message code="contestant.contest.label" default="Contest" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="contest" name="contest.id" from="${minusjudge.Contest.list()}" optionKey="id" required="" value="${contestantInstance?.contest?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contestantInstance, field: 'penaltyTime', 'error')} required">
	<label for="penaltyTime">
		<g:message code="contestant.penaltyTime.label" default="Penalty Time" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="penaltyTime" type="number" value="${contestantInstance.penaltyTime}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: contestantInstance, field: 'solvedProblems', 'error')} required">
	<label for="solvedProblems">
		<g:message code="contestant.solvedProblems.label" default="Solved Problems" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="solvedProblems" type="number" value="${contestantInstance.solvedProblems}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: contestantInstance, field: 'submissions', 'error')} required">
	<label for="submissions">
		<g:message code="contestant.submissions.label" default="Submissions" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="submissions" name="submissions.id" from="${minusjudge.Submission.list()}" optionKey="id" required="" value="${contestantInstance?.submissions?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contestantInstance, field: 'user', 'error')} required">
	<label for="user">
		<g:message code="contestant.user.label" default="User" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="user" name="user.id" from="${minusjudge.User.list()}" optionKey="id" required="" value="${contestantInstance?.user?.id}" class="many-to-one"/>
</div>

